package com.kingdee.eas.ec.project.scence.app;

import javax.ejb.*;
import java.rmi.RemoteException;
import com.kingdee.bos.*;
import com.kingdee.bos.util.BOSObjectType;
import com.kingdee.bos.metadata.IMetaDataPK;
import com.kingdee.bos.metadata.rule.RuleExecutor;
import com.kingdee.bos.metadata.MetaDataPK;
//import com.kingdee.bos.metadata.entity.EntityViewInfo;
import com.kingdee.bos.framework.ejb.AbstractEntityControllerBean;
import com.kingdee.bos.framework.ejb.AbstractBizControllerBean;
//import com.kingdee.bos.dao.IObjectPK;
import com.kingdee.bos.dao.IObjectValue;
import com.kingdee.bos.dao.IObjectCollection;
import com.kingdee.bos.service.ServiceContext;
import com.kingdee.bos.service.IServiceContext;
import com.kingdee.eas.framework.Result;
import com.kingdee.eas.framework.LineResult;
import com.kingdee.eas.framework.exception.EASMultiException;
import com.kingdee.bos.dao.ormapping.ObjectUuidPK;

import java.lang.String;
import com.kingdee.eas.ec.material.inv.app.MaterialInvBillEntryControllerBean;
import com.kingdee.eas.common.EASBizException;
import com.kingdee.bos.metadata.entity.EntityViewInfo;
import com.kingdee.bos.dao.IObjectPK;
import com.kingdee.eas.ec.basedata.BaseBillEntryCollection;
import com.kingdee.eas.framework.CoreBillEntryBaseCollection;
import com.kingdee.bos.metadata.entity.SelectorItemCollection;
import com.kingdee.eas.framework.CoreBaseCollection;
import com.kingdee.eas.framework.BillEntryBaseCollection;
import com.kingdee.eas.ec.project.scence.GaAttaintEntryCollection;
import com.kingdee.eas.framework.CoreBaseInfo;
import com.kingdee.eas.ec.material.inv.MaterialInvBillEntryCollection;
import com.kingdee.eas.ec.project.scence.GaAttaintEntryInfo;
import com.kingdee.eas.ec.material.basedata.OutInWareBaseBillEntryCollection;



public abstract class AbstractGaAttaintEntryControllerBean extends MaterialInvBillEntryControllerBean implements GaAttaintEntryController
{
    protected AbstractGaAttaintEntryControllerBean()
    {
    }

    protected BOSObjectType getBOSType()
    {
        return new BOSObjectType("323B2DBD");
    }

    public GaAttaintEntryInfo getGaAttaintEntryInfo(Context ctx, IObjectPK pk) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("34b5be13-6a4f-4f9d-94b2-e6e93f6cc217"), new Object[]{ctx, pk});
            invokeServiceBefore(svcCtx);
            GaAttaintEntryInfo retValue = (GaAttaintEntryInfo)_getValue(ctx, pk);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectValue _getValue(Context ctx, IObjectPK pk) throws BOSException, EASBizException
    {
        return super._getValue(ctx, pk);
    }

    public GaAttaintEntryInfo getGaAttaintEntryInfo(Context ctx, IObjectPK pk, SelectorItemCollection selector) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("2a23041f-c933-4285-98d4-ec2c324125e4"), new Object[]{ctx, pk, selector});
            invokeServiceBefore(svcCtx);
            GaAttaintEntryInfo retValue = (GaAttaintEntryInfo)_getValue(ctx, pk, selector);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectValue _getValue(Context ctx, IObjectPK pk, SelectorItemCollection selector) throws BOSException, EASBizException
    {
        return super._getValue(ctx, pk, selector);
    }

    public GaAttaintEntryInfo getGaAttaintEntryInfo(Context ctx, String oql) throws BOSException, EASBizException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("690e3930-f53b-4e77-9dd0-872f457aea8c"), new Object[]{ctx, oql});
            invokeServiceBefore(svcCtx);
            GaAttaintEntryInfo retValue = (GaAttaintEntryInfo)_getValue(ctx, oql);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } catch (EASBizException ex0) {
            throw ex0;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectValue _getValue(Context ctx, String oql) throws BOSException, EASBizException
    {
        return super._getValue(ctx, oql);
    }

    public GaAttaintEntryCollection getGaAttaintEntryCollection(Context ctx) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("ecb17e64-4ade-4bbe-b38a-d198b6c1a559"), new Object[]{ctx});
            invokeServiceBefore(svcCtx);
            GaAttaintEntryCollection retValue = (GaAttaintEntryCollection)_getCollection(ctx, svcCtx);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectCollection _getCollection(Context ctx, IServiceContext svcCtx) throws BOSException
    {
        return super._getCollection(ctx, svcCtx);
    }

    public GaAttaintEntryCollection getGaAttaintEntryCollection(Context ctx, EntityViewInfo view) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("46e7cfbe-6868-4a9c-ba80-65fbf86b1a90"), new Object[]{ctx, view});
            invokeServiceBefore(svcCtx);
            GaAttaintEntryCollection retValue = (GaAttaintEntryCollection)_getCollection(ctx, svcCtx, view);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectCollection _getCollection(Context ctx, IServiceContext svcCtx, EntityViewInfo view) throws BOSException
    {
        return super._getCollection(ctx, svcCtx, view);
    }

    public GaAttaintEntryCollection getGaAttaintEntryCollection(Context ctx, String oql) throws BOSException
    {
        try {
            ServiceContext svcCtx = createServiceContext(new MetaDataPK("571f27f8-a873-4762-a9a2-3bd6637fbf19"), new Object[]{ctx, oql});
            invokeServiceBefore(svcCtx);
            GaAttaintEntryCollection retValue = (GaAttaintEntryCollection)_getCollection(ctx, svcCtx, oql);
            svcCtx.setMethodReturnValue(retValue);
            invokeServiceAfter(svcCtx);
            return retValue;
        } catch (BOSException ex) {
            throw ex;
        } finally {
            super.cleanUpServiceState();
        }
    }
    protected IObjectCollection _getCollection(Context ctx, IServiceContext svcCtx, String oql) throws BOSException
    {
        return super._getCollection(ctx, svcCtx, oql);
    }

    public MaterialInvBillEntryCollection getMaterialInvBillEntryCollection (Context ctx) throws BOSException
    {
    	return (MaterialInvBillEntryCollection)(getGaAttaintEntryCollection(ctx).cast(MaterialInvBillEntryCollection.class));
    }
    public MaterialInvBillEntryCollection getMaterialInvBillEntryCollection (Context ctx, EntityViewInfo view) throws BOSException
    {
    	return (MaterialInvBillEntryCollection)(getGaAttaintEntryCollection(ctx, view).cast(MaterialInvBillEntryCollection.class));
    }
    public MaterialInvBillEntryCollection getMaterialInvBillEntryCollection (Context ctx, String oql) throws BOSException
    {
    	return (MaterialInvBillEntryCollection)(getGaAttaintEntryCollection(ctx, oql).cast(MaterialInvBillEntryCollection.class));
    }
    public OutInWareBaseBillEntryCollection getOutInWareBaseBillEntryCollection (Context ctx) throws BOSException
    {
    	return (OutInWareBaseBillEntryCollection)(getGaAttaintEntryCollection(ctx).cast(OutInWareBaseBillEntryCollection.class));
    }
    public OutInWareBaseBillEntryCollection getOutInWareBaseBillEntryCollection (Context ctx, EntityViewInfo view) throws BOSException
    {
    	return (OutInWareBaseBillEntryCollection)(getGaAttaintEntryCollection(ctx, view).cast(OutInWareBaseBillEntryCollection.class));
    }
    public OutInWareBaseBillEntryCollection getOutInWareBaseBillEntryCollection (Context ctx, String oql) throws BOSException
    {
    	return (OutInWareBaseBillEntryCollection)(getGaAttaintEntryCollection(ctx, oql).cast(OutInWareBaseBillEntryCollection.class));
    }
    public BaseBillEntryCollection getBaseBillEntryCollection (Context ctx) throws BOSException
    {
    	return (BaseBillEntryCollection)(getGaAttaintEntryCollection(ctx).cast(BaseBillEntryCollection.class));
    }
    public BaseBillEntryCollection getBaseBillEntryCollection (Context ctx, EntityViewInfo view) throws BOSException
    {
    	return (BaseBillEntryCollection)(getGaAttaintEntryCollection(ctx, view).cast(BaseBillEntryCollection.class));
    }
    public BaseBillEntryCollection getBaseBillEntryCollection (Context ctx, String oql) throws BOSException
    {
    	return (BaseBillEntryCollection)(getGaAttaintEntryCollection(ctx, oql).cast(BaseBillEntryCollection.class));
    }
    public BillEntryBaseCollection getBillEntryBaseCollection (Context ctx) throws BOSException
    {
    	return (BillEntryBaseCollection)(getGaAttaintEntryCollection(ctx).cast(BillEntryBaseCollection.class));
    }
    public BillEntryBaseCollection getBillEntryBaseCollection (Context ctx, EntityViewInfo view) throws BOSException
    {
    	return (BillEntryBaseCollection)(getGaAttaintEntryCollection(ctx, view).cast(BillEntryBaseCollection.class));
    }
    public BillEntryBaseCollection getBillEntryBaseCollection (Context ctx, String oql) throws BOSException
    {
    	return (BillEntryBaseCollection)(getGaAttaintEntryCollection(ctx, oql).cast(BillEntryBaseCollection.class));
    }
    public CoreBillEntryBaseCollection getCoreBillEntryBaseCollection (Context ctx) throws BOSException
    {
    	return (CoreBillEntryBaseCollection)(getGaAttaintEntryCollection(ctx).cast(CoreBillEntryBaseCollection.class));
    }
    public CoreBillEntryBaseCollection getCoreBillEntryBaseCollection (Context ctx, EntityViewInfo view) throws BOSException
    {
    	return (CoreBillEntryBaseCollection)(getGaAttaintEntryCollection(ctx, view).cast(CoreBillEntryBaseCollection.class));
    }
    public CoreBillEntryBaseCollection getCoreBillEntryBaseCollection (Context ctx, String oql) throws BOSException
    {
    	return (CoreBillEntryBaseCollection)(getGaAttaintEntryCollection(ctx, oql).cast(CoreBillEntryBaseCollection.class));
    }
    public CoreBaseCollection getCoreBaseCollection (Context ctx) throws BOSException
    {
    	return (CoreBaseCollection)(getGaAttaintEntryCollection(ctx).cast(CoreBaseCollection.class));
    }
    public CoreBaseCollection getCoreBaseCollection (Context ctx, EntityViewInfo view) throws BOSException
    {
    	return (CoreBaseCollection)(getGaAttaintEntryCollection(ctx, view).cast(CoreBaseCollection.class));
    }
    public CoreBaseCollection getCoreBaseCollection (Context ctx, String oql) throws BOSException
    {
    	return (CoreBaseCollection)(getGaAttaintEntryCollection(ctx, oql).cast(CoreBaseCollection.class));
    }
}